package com.pzy.service;

import com.github.pagehelper.PageInfo;
import com.pzy.domain.User;
import org.springframework.transaction.annotation.Transactional;

@Transactional()
public interface UserService {

    //增
    boolean addUser(User user);

    //删
    boolean deleteUser(Integer userID);

    //改
    boolean updateUser(User user);

    //查单个
    User getOne(Integer userID);

    //分页查所有
    PageInfo<User> getAll(int page, int size);

    //查用户
    User getUser(String userName, String password);
}
